package com.schillerchina.baselibrary.network.config;


import java.io.Serializable;

/**
 * @author zhangzhiguo
 * @date 2019-08-05 09:39
 * @Description: 服务器返回解析Result
 */
public class JsonResult<T> implements Serializable {

    private static final long serialVersionUID = 1717488731978480120L;
    private String code;
    private String message;
    private long ctime;
    private String requestId;
    private T data;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public long getCtime() {
        return ctime;
    }

    public void setCtime(long ctime) {
        this.ctime = ctime;
    }

    public String getRequestId() {
        return requestId;
    }

    public void setRequestId(String requestId) {
        this.requestId = requestId;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "{\"code\":" + code + "\"ctime\":" + ctime + ",\"message\":" + message + ",\"data\":" + data + "}";
    }


}
